#
# This docker file based on third party image
#
# See https://hub.docker.com/r/zuohuadong/caddy/
#
FROM zuohuadong/caddy:alpine

ARG plugins="cors"

## ARG plugins="cors cgi cloudflare azure linode"

RUN caddyplug install ${plugins}
    
EXPOSE 80 443 2015

WORKDIR /var/www/public

CMD ["/usr/bin/caddy", "-conf", "/etc/Caddyfile"]
